package stat;

public class DRatingDerivedStat extends DerivedStat {

    public DRatingDerivedStat( StatType st, Stat... toCache) {
        super(st, toCache);
        compute();
    }
    
    public DRatingDerivedStat( StatType st, int value, Stat... toCache) {
        super(st, value, toCache);
        //compute();
    }
    
    /**
     * compute the new value for drating
     */
    public void compute() {
        setValue(getFromCache(StatType.AGI)*2 + getFromCache(StatType.LEVEL)*2);
    }
    
}
